package com.margo.project.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * Spring Session and Spring Security
 * https://docs.spring.io/spring-session/docs/current/reference/html5/guides/java-security.html
 * 
 * 	Instead of using Tomcat’s HttpSession, we persist the values in Redis.
 *  Spring Session replaces the HttpSession with an implementation that is backed by Redis. 
 *  When Spring Security’s SecurityContextPersistenceFilter saves the SecurityContext to the HttpSession, 
 *  it is then persisted into Redis.
 *  
 *  When a new HttpSession is created, Spring Session creates a cookie named SESSION in your browser. 
 *  That cookie contains the ID of your session
 * @author fxb208
 *
 */
@SpringBootApplication
public class SpringWebApplication {
	public static void main(String[] args) {
		SpringApplication.run(SpringWebApplication.class, args);
	}
}
